package com.ssn.jse.tij4;


	//: reusing/SprinklerSystem.java
	// Composition for code reuse.

	class WaterSource {
	  private String s;
	  WaterSource() {
	    System.out.println("WaterSource()");
	    s = "Constructed";
	  }
	  public String toString() { return s; }
	}	

	public class Test {
	 String i="c";

	  
	  public static void main(String[] args) {
		  Test sprinklers = new Test();
	    System.out.println(sprinklers);
	  }
	} /* Output:
	WaterSource()
	valve1 = null valve2 = null valve3 = null valve4 = null
	i = 0 f = 0.0 source = Constructed
	*///:~


